import request from "@/utils/request";
import { Resource } from "@/utils/resource";
import type { Tarot } from "@/utils/result";

export interface LoginRequest {
  username: string;
  password: string;
}
const Login: any = (params: LoginRequest) => {
  return request.post<Tarot.ResultResponse>(Resource.ACCOUNT_LOGIN, params);
};

export default Login;
